<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>权限管理</el-breadcrumb-item>
    </el-breadcrumb>

    <el-card :data="rightsList" border stripe>
      <el-table type="index"></el-table>
      <el-table label="权限名称" prop=""></el-table>
      <el-table type="路径" prop=""></el-table>
      <el-table type="权限等级" prop="">
        
      </el-table>
    </el-card>
  </div>
</template>

<script>
export default {
  name:'MemberManagement',
  data(){
    return{
      //权限列表
      rightsList:[]
    }
  },
  created(){
    //获取所有的权限列表
    this.getRightsList()
  },
  methods:{
    //获取权限列表
    async getRightsList(){
      const { data: res} =await this.$http.get()
      if(res.meta.status !== 200){
        return this.$message.error('获取权限列表错误！')
      }
      this.rightsList =res.data
    }
  }
}
</script>

<style scoped>

</style>